package com.zhuhanpeng.cloud.login.repository;

import com.zhuhanpeng.cloud.mybatis.entity.PtMenuEntity;
import com.zhuhanpeng.cloud.mybatis.entity.PtUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginDao {
    PtUserEntity queryUserInfoByName(@Param("username") String username);

    List<PtMenuEntity> queryMenuInfoListByUuidLang(@Param("userUuid") String userUuid,@Param("lang") String lang);
    List<String> queryAuthList(@Param("userUuid") String userUuid); //according Uuid return the permissions of user by menu
}
